import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/login/components/index'
import Login from '@/login/components/Login'
import Register from '@/login/components/Register'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        name: 'index',
        component: Index,
        children: [
            {
                path: '/',
                component: Login
            },
            {
                path: 'login',
                component: Login
            },
            {
                path: 'register',
                component: Register
            },
        ]
    }
  ]
})
